﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PO_2011
{
    public partial class PopupFileType : Form
    {
        Gimp gimp = null;

        public PopupFileType(Gimp gimp)
        {
            this.gimp = gimp;
            InitializeComponent();
        }

        private void buttonSaveType_Click(object sender, EventArgs e)
        {
            this.Close();
            PNM_Writer.saveImage(gimp.imageBox.Image, gimp.img, gimp.saveImage.FileName, gimp.saveImage.FilterIndex.ToString(), this.radioASCII.Checked);
        }

    }
}
